function refreshScale(id = "screen") {
    let baseWidth = document.documentElement.clientWidth;
    let baseHeight = document.documentElement.clientHeight;
    let appStyle: any = document.getElementById(id).style || {};
    let realRatio = baseWidth / baseHeight;
    let designRatio = 1920 / 980;
    let scaleRate = baseWidth / 1920;
    if (realRatio > designRatio) {
        scaleRate = baseHeight / 980;
    }
    appStyle.transformOrigin = "left top";
    appStyle.transform = `scale(${scaleRate})`;
    appStyle.width = `${baseWidth / scaleRate}px`;
}
export default refreshScale;
